package eteam.aps.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import eteam.aps.common.entity.ParentEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Objects;


/**
 * SalesAudit
 *
 * @author ll
 * @since 2023-06-02
 */
@TableName("zn_sales_audit")
@ApiModel(value = "SalesAudit对象", description = "SalesAudit")
public class SalesAudit extends ParentEntity {

    public SalesAudit() {
    }

    public SalesAudit(String fSalesOrder, String fOrderNum) {
        this.fSalesOrder = fSalesOrder;
        this.fOrderNum = fOrderNum;
    }

    /**
     * 发货单  not null
     */
    @ApiModelProperty("发货单")
    @TableField("FSalesOrder")
    private String fSalesOrder;

    /**
     * 发货单号  not null
     */
    @ApiModelProperty("发货单号")
    @TableField("FOrderNum")
    private String fOrderNum;

    /**
     * 审核具体时间  not null
     */
    @ApiModelProperty("审核具体时间")
    @TableField("FDverifySysTime")
    private LocalDateTime fDverifySysTime;

    /**
     * 审核时间  not null
     */
    @ApiModelProperty("审核时间")
    @TableField("FDverifyDate")
    private LocalDate fDverifyDate;

    /**
     * 审核人编码  not null
     */
    @ApiModelProperty("审核人编码")
    @TableField("FCVerifierCode")
    private String fCVerifierCode;

    /**
     * 审核人  not null
     */
    @ApiModelProperty("审核人")
    @TableField("FCVerifier")
    private String fCVerifier;

    public String getfSalesOrder() {
        return fSalesOrder;
    }

    public void setfSalesOrder(String fSalesOrder) {
        this.fSalesOrder = fSalesOrder;
    }

    public String getfOrderNum() {
        return fOrderNum;
    }

    public void setfOrderNum(String fOrderNum) {
        this.fOrderNum = fOrderNum;
    }

    public LocalDateTime getfDverifySysTime() {
        return fDverifySysTime;
    }

    public void setfDverifySysTime(LocalDateTime fDverifySysTime) {
        this.fDverifySysTime = fDverifySysTime;
    }

    public LocalDate getfDverifyDate() {
        return fDverifyDate;
    }

    public void setfDverifyDate(LocalDate fDverifyDate) {
        this.fDverifyDate = fDverifyDate;
    }

    public String getfCVerifierCode() {
        return fCVerifierCode;
    }

    public void setfCVerifierCode(String fCVerifierCode) {
        this.fCVerifierCode = fCVerifierCode;
    }

    public String getfCVerifier() {
        return fCVerifier;
    }

    public void setfCVerifier(String fCVerifier) {
        this.fCVerifier = fCVerifier;
    }


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SalesAudit that = (SalesAudit) o;
        return Objects.equals(fOrderNum, that.fOrderNum);
    }

    @Override
    public int hashCode() {
        return Objects.hash(fOrderNum);
    }
}
